﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using CSCSN.Foundation.SpecificationsForEntityModel;
using Microsoft.AspNetCore.Identity;

namespace CSCSN.EntitiyModels
{
    public class ApplicationUser : IdentityUser<Guid>, IEntity
    {
        [StringLength(500)]
        public string Name { get; set; }  // 昵称
        [StringLength(500)]
        public string Description { get; set; }

        public ApplicationUser() : base()
        {
            this.Id = Guid.NewGuid();
        }
        public ApplicationUser(string userName) : base(userName)
        {
            this.Id = Guid.NewGuid();
            this.UserName = userName;
        }

    }
}
